package com.shop.cart;

import com.shop.entity.Product;

public class CartItem {
	
	//商品
	private Product product;
	//数量
	private int count;
	//价格
	private int price;
	
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
		this.price=this.product.getPrice()*this.count;
	}
	
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	

}
